// properties.h: interface for the Cproperties class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(PROPERTIES)
#define PROPERTIES

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

//#pragma warning(disable:4786)

#include <iostream>
#include <string>
#include <map>



using namespace std;

class Cproperties  
{
private:
	FILE *fp;
	map<std::string,std::string> mapa;
	typedef pair<std::string,std::string> entry;
	string archivo;

public:
	string getProperty(string key);
	void CargarMapa();
	int borrar();
	int crearnuevo();
	string GetKey(string key);
	int SetKey(string key,string value);
	int setProperty(string key,string value);
	Cproperties(string location);
	Cproperties();
	int getSize();
	int updateKeyValue(string key,string value);
	int saveAllProperties();
	virtual ~Cproperties();
	int resetProperties();
};


#endif 

